package com.fram.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.fram.bean.api.shopcart.request.ShopCartSearchRequest;
import com.fram.bean.api.shopcart.response.ShopCartSearchResponse;
import com.fram.entity.OrderShoppingcart;

public interface OrderShoppingcartMapper {

	int deleteByPrimaryKey(Long id);

	int insert(OrderShoppingcart record);

	int insertSelective(OrderShoppingcart record);

	OrderShoppingcart selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(OrderShoppingcart record);

	int updateByPrimaryKey(OrderShoppingcart record);

	/** 查询购物车基础数据 **/
	List<OrderShoppingcart> selectForBasicData(ShopCartSearchRequest request);

	/** 删除多个数据 **/
	int deleteByIds(List<Long> cartIds);

	/** 前端查询购物车的数据list **/
	List<ShopCartSearchResponse> selectForApi(@Param("distributorId") Long distributorId, @Param("userId") Long userId, @Param("cartIds") List<Long> cartIds);

}